package com.example.yuxin.demo.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: <br>
 *
 * @author: name：yuxin <br>email: yuruixin@ixincheng.com <br>
 * Create Time:  2018/7/4 0004-下午 7:51<br>
 */
@Controller
public class HomeController {

    @RequestMapping(value = "/sw",method = RequestMethod.GET)
    public void sw(HttpServletResponse res) throws IOException {
        res.sendRedirect("/swagger-ui.html");
    }

}